package com.shunda.trade.service;

import com.shunda.trade.entity.TradeWithdrawalsFlow;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 用户信息表(TradeWithdrawalsFlow)表服务接口
 *
 * @author makejava
 * @since 2025-03-13 21:36:54
 */
public interface TradeWithdrawalsFlowService {

    /**
     * 通过ID查询单条数据
     *
     * @param flowId 主键
     * @return 实例对象
     */
    TradeWithdrawalsFlow queryById(Long flowId);

    /**
     * 分页查询
     *
     * @param tradeWithdrawalsFlow 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<TradeWithdrawalsFlow> queryByPage(TradeWithdrawalsFlow tradeWithdrawalsFlow, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param tradeWithdrawalsFlow 实例对象
     * @return 实例对象
     */
    TradeWithdrawalsFlow insert(TradeWithdrawalsFlow tradeWithdrawalsFlow);

    /**
     * 修改数据
     *
     * @param tradeWithdrawalsFlow 实例对象
     * @return 实例对象
     */
    TradeWithdrawalsFlow update(TradeWithdrawalsFlow tradeWithdrawalsFlow);

    /**
     * 通过主键删除数据
     *
     * @param flowId 主键
     * @return 是否成功
     */
    boolean deleteById(Long flowId);

    /**
     * 分页查询提现记录
     *
     * @param withdrawalsFlow
     * @return
     */
    List<TradeWithdrawalsFlow> selectWithdrawFlowPage(TradeWithdrawalsFlow withdrawalsFlow);
}
